package com.tzy.gateway.config;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import java.util.List;
//@Data
//@Component
public class ExcludeFilterBean{
    @Value("${filter.array}")
    private String[] excludeArray;
    @PostConstruct
    public void array(){
        for (String str :excludeArray){
            System.out.println("str="+str);
        }
    }
    @Value("#{'${filter.exclude}'.split(',')}")
    private List<String> excludeList;
    /*
     * 需要拦截的路径
     */
    @PostConstruct
    public void t(){
        System.out.println("excludeList="+excludeList);
    }
}